# 集合推导式
list = [1,54,45,6,7,8,9,0]
set = [x-1 for x in list if x>5]
print(set)
print('---------------------')
# 字典推导式
dict = {'a':'A','b':'B','c':'C','d':'C'}
newdict = {v:k for k,v in dict.items()}
print(newdict)















